@import "../common/header.scss";
@import "../common/body";
@import "../common/footer";
@import "../common/constats";


.main{
    .wrapper{
        .main-content-wrapper{
            padding: 20px;
            box-sizing: border-box;

            background: #ffffff;
            .news-wrapper{
                .title {
                    color: $mainFontColor;
                    font-size: 24px;
                    // 设置文字加粗效果
                    font-weight: 400;
                }
                .news-info{
                    overflow: hidden;
                    margin-top: 20px;
                    color:$assistFontColor;
                    font-size: 14px;
                    line-height: $newsInfoHeight;
                    .info-group{
                        float: left;
                        .pub-time{
                            margin-left: 20px;
                        }
                        .category{
                            margin-left: 20px;
                            background: $themeColor;
                            color:#fff;
                            padding:0 5px;
                        }
                    }
                    .share-group{
                        float:right;
                        overflow: hidden;
                        span{
                            float:left;

                        }
                        .share-item{
                            float:left;
                            width:$newsInfoHeight;
                            height:$newsInfoHeight;
                            background: url("https://www.xfz.cn/static/build/images/share.png");
                            background-size: 230%;
                            background-repeat: no-repeat;
                        }
                        .weixin{


                        }
                        .weibo{
                            background-position: -36px 0;
                            margin-left: 10px;
                        }
                    }
                }
                .article{
                    margin-top: 20px;
                    img{
                        // 限制图片最大
                        max-width: 100%;
                    }
                }

            }
            .comment-wrapper{
                border-top:1px solid $lineColor;
                padding-top:20px;
                .title{
                    color:$mainFontColor;
                    font-size: 18px;
                    font-weight: 400;
                }
                .comment-textarea{
                    margin-top: 10px;
                    width:100%;
                    resize: none;
                    outline: none;
                    border:1px solid #ccc;
                    //border:1px solid red;
                    border-radius: 5px;
                    font-size:14px;
                    padding:6px 10px;
                    box-sizing: border-box;

                }
                .nologin-textarea{
                    height:40px;
                    line-height: 26px;
                    // 禁止滚动条出现
                    overflow: hidden;
                }
                .logined-textarea{
                    height:80px;
                }
                .submit-btn-group{
                    text-align: right;
                    margin-top: 14px;
                    .sumbit-btn{
                        background: $themeColor;
                        border:none;
                        padding: 10px 20px;
                        color:#fff;
                        border-radius: 5px;
                        cursor:pointer;
                    }


                }
                .comment-list{
                    padding:20px;
                    li{
                        border-bottom: 1px solid $assistFontColor;
                        padding-bottom: 20px;
                        margin-bottom: 20px;
                        .comment-info{
                            overflow: hidden;
                            // 设置作者居中
                            height:40px;
                            line-height: 40px;
                            font-size: 16px;
                            color:$assistFontColor;

                            .avatar{
                                float:left;
                                width:40px;
                                height:40px;
                                border-radius: 50%;
                            }
                            .author{
                                float:left;
                                margin-left: 20px;
                            }
                            .pub-time{
                                float:right;
                            }

                        }
                        .commit-content{
                            margin-left: 60px;
                        }
                    }
                }

            }
        }
    }
}